package com.victor.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.victor.entity.ticketorder.TicketOrders;
import com.victor.entity.ticketorder.TicketorderUser;

public interface TicketOrderService {
	/**
	 * 查询全部订单  和根据订单状态 查找
	 * @param page
	 * @param row
	 * @return
	 */
	PageInfo<TicketOrders> selAll(int page, int row,String flag,String useflag,String search,String start,String end);
	/**
	 * 订单详情
	 * @param id
	 * @return
	 */
	TicketOrders selByOrderId(Integer id);
	/**
	 * 删除订单
	 * @param ids
	 * @return
	 */
	boolean deleteOrder(int[] ids);
	/**
	 * 修改订单
	 * @param ticketOrders
	 * @return
	 */
	boolean updateOrder(TicketOrders ticketOrders);
	/**
	 * 票务下单
	 * @param ticketOrders
	 * @return
	 */
	boolean insertTicketorder(TicketOrders ticketOrders);
	/**
	 * 添加出行人
	 * @param ticketorderUser
	 * @return
	 */
	boolean insertTicketorderUser(TicketorderUser ticketorderUser);
	/**
	 * 查询某人订单
	 * @param useflag
	 * @param uid
	 * @param row 
	 * @param page 
	 * @return
	 */
	PageInfo<TicketOrders> selOrderByUidAndUseflag(String useflag, String uid, int page, int row);
	/**
	 * 根据id查询详情
	 * @param id
	 * @return
	 */
	TicketOrders selAppById(String id);

}
